
import 'package:flutter/cupertino.dart';
import 'package:oktoast/oktoast.dart' as ok;
class ToastUtils{
  static showToast({msg}){
    toast(msg);
  }
  static toast(text){
    // showToast(text,position: ToastPosition.bottom);
    // Fluttertoast.showToast(
    //     msg: (text??"").toString(),
    //     toastLength: Toast.LENGTH_SHORT,
    //     gravity: ToastGravity.CENTER,  // 消息框弹出的位置
    //     fontSize: 14.0
    // );
    ok.showToast(text);
  }

}